home *** CD-ROM | disk | FTP | other *** search
/ Minami 56 / MINAMI56.ISO / Extra / winamp505_full.exe / $R0 / Winamp Modern / shadecontrol.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-07-01  |  10KB  |  303 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global ConfigAttribute ConfigAttribute17;
  6. Global ConfigAttribute ConfigAttribute18;
  7. Global ConfigAttribute ConfigAttribute19;
  8. Global ConfigAttribute ConfigAttribute20;
  9. Global ConfigAttribute ConfigAttribute21;
  10. Global ConfigAttribute ConfigAttribute22;
  11. Global ConfigAttribute ConfigAttribute23;
  12. Global ConfigAttribute ConfigAttribute24;
  13. Global ConfigAttribute ConfigAttribute25;
  14. Global ConfigAttribute ConfigAttribute26;
  15. Global ConfigAttribute ConfigAttribute27;
  16. Global ConfigAttribute ConfigAttribute28;
  17. Global ConfigAttribute ConfigAttribute29;
  18. Global ConfigAttribute ConfigAttribute30;
  19. Global ConfigAttribute ConfigAttribute31;
  20. Global ConfigAttribute ConfigAttribute32;
  21. Global ConfigAttribute ConfigAttribute33;
  22. Global ConfigAttribute ConfigAttribute34;
  23. Global ConfigAttribute ConfigAttribute35;
  24. Global ConfigAttribute ConfigAttribute36;
  25. Global ConfigAttribute ConfigAttribute37;
  26. Global ConfigAttribute ConfigAttribute38;
  27. Global ConfigAttribute ConfigAttribute39;
  28. Global ConfigAttribute ConfigAttribute40;
  29. Global ConfigAttribute ConfigAttribute41;
  30. Global ConfigAttribute ConfigAttribute42;
  31. Global ConfigAttribute ConfigAttribute43;
  32. Global Group Group116;
  33. Global Group Group117;
  34. Global Group Group118;
  35. Global Group Group119;
  36. Global Group Group120;
  37. Global Group Group121;
  38. Global Group Group122;
  39. Global Group Group123;
  40. Global Group Group124;
  41. Global Button Button125;
  42. Global Button Button126;
  43. Global Button Button127;
  44. Global Layout Layout128;
  45. Global Layout Layout129;
  46. Global Layer Layer130;
  47. Global Text Text131;
  48. Global Button Button132;
  49.  
  50. Function func242();
  51. Function func2396(Int 0);
  52. Function func3877();
  53.  
  54. func242()
  55. {
  56. ConfigItem ConfigItem71;
  57. ConfigAttribute ConfigAttribute84;
  58. ConfigAttribute ConfigAttribute74;
  59. ConfigAttribute ConfigAttribute75;
  60. ConfigAttribute ConfigAttribute72;
  61. ConfigAttribute ConfigAttribute78;
  62. ConfigAttribute ConfigAttribute77;
  63. ConfigAttribute ConfigAttribute79;
  64. ConfigItem ConfigItem67;
  65. ConfigItem ConfigItem69;
  66. ConfigItem ConfigItem49;
  67. ConfigAttribute ConfigAttribute73;
  68. ConfigItem ConfigItem58;
  69. ConfigItem ConfigItem64;
  70. ConfigItem ConfigItem52;
  71. ConfigItem ConfigItem55;
  72. ConfigItem ConfigItem46;
  73. ConfigItem ConfigItem61;
  74. ConfigItem46 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  75. ConfigItem49 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  76. ConfigItem52 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  77. ConfigItem55 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  78. ConfigItem58 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  79. ConfigItem61 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  80. ConfigItem64 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  81. ConfigItem67 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
  82. ConfigItem69 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
  83. ConfigItem71 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
  84. ConfigAttribute72 = ConfigItem69.newAttribute(( "Winamp\ Modern"), ( ""));
  85. ConfigAttribute72.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  86. ConfigAttribute73 = ConfigItem46.newAttribute(( "Drawers"), ( ""));
  87. ConfigAttribute73.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  88. ConfigAttribute74 = ConfigItem46.newAttribute(( "Menus"), ( ""));
  89. ConfigAttribute74.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  90. ConfigAttribute75 = ConfigItem46.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
  91. ConfigAttribute75.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  92. ConfigAttribute77 = ConfigItem46.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
  93. ConfigAttribute77.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  94. ConfigAttribute78 = ConfigItem46.newAttribute(( "Notifications"), ( ""));
  95. ConfigAttribute78.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  96. ConfigAttribute79 = ConfigItem46.newAttribute(( "Songticker"), ( ""));
  97. ConfigAttribute79.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  98. ConfigAttribute17 = ConfigItem49.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
  99. ConfigAttribute18 = ConfigItem49.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
  100. ConfigAttribute84 = ConfigItem49.newAttribute(( "sep1"), ( ""));
  101. ConfigAttribute84.setData(( "\-"));
  102. ConfigAttribute21 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
  103. ConfigAttribute22 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
  104. ConfigAttribute23 = ConfigItem49.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
  105. if(( ConfigAttribute21.getData() == ( "1"))) {
  106. ConfigAttribute21.onDataChanged();
  107. } else {
  108. ConfigAttribute22.onDataChanged();
  109. }
  110. ConfigAttribute25 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
  111. ConfigAttribute26 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
  112. ConfigAttribute27 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
  113. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep1"), ( ""));
  114. ConfigAttribute84.setData(( "\-"));
  115. ConfigAttribute19 = ConfigItem46.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
  116. ConfigAttribute20 = ConfigItem46.newAttribute(( "Detach\ Video\ Window"), ( "0"));
  117. ConfigAttribute24 = ConfigItem71.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
  118. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep2"), ( ""));
  119. ConfigAttribute84.setData(( "\-"));
  120. ConfigAttribute31 = ConfigItem46.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
  121. ConfigAttribute28 = ConfigItem55.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
  122. ConfigAttribute29 = ConfigItem55.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
  123. ConfigAttribute30 = ConfigItem55.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
  124. ConfigAttribute33 = ConfigItem58.newAttribute(( "Open\ Context\ Menu"), ( "1"));
  125. ConfigAttribute32 = ConfigItem58.newAttribute(( "Open\ Configuration"), ( "0"));
  126. ConfigAttribute36 = ConfigItem61.newAttribute(( "Show\ always"), ( "0"));
  127. ConfigAttribute35 = ConfigItem61.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
  128. ConfigAttribute34 = ConfigItem61.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
  129. ConfigAttribute37 = ConfigItem61.newAttribute(( "Never\ show"), ( "1"));
  130. ConfigAttribute84 = ConfigItem61.newAttribute(( "sep1"), ( ""));
  131. ConfigAttribute84.setData(( "\-"));
  132. ConfigAttribute41 = ConfigItem61.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
  133. ConfigAttribute38 = ConfigItem67.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
  134. ConfigAttribute39 = ConfigItem67.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
  135. ConfigAttribute40 = ConfigItem67.newAttribute(( "Notifications\ display\ time"), ( "2000"));
  136. ConfigAttribute42 = ConfigItem64.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
  137. ConfigAttribute43 = ConfigItem64.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
  138. return Null;
  139. }
  140.  
  141. System.onScriptLoaded()
  142. {
  143. func242();
  144. Group116 = System.getScriptGroup();
  145. Layout128 = Group116.getParentLayout();
  146. Layout129 = Group116.getParentLayout().getContainer().getLayout(( "normal"));
  147. Group117 = Group116.findObject(( "shadeX1"));
  148. Group118 = Group116.findObject(( "shadeX2"));
  149. Group119 = Group116.findObject(( "shadeX3"));
  150. Button127 = Group116.findObject(( "shadeeq"));
  151. Group120 = Group116.findObject(( "shadedisplay"));
  152. Group121 = Group116.findObject(( "shadedisplay2"));
  153. Group122 = Group116.findObject(( "shadetimer"));
  154. Group123 = Group116.findObject(( "shadeticker"));
  155. Group124 = Group116.findObject(( "shadevis"));
  156. Button125 = Group116.findObject(( "shade\.expand"));
  157. Button126 = Group116.findObject(( "shade\.reduce"));
  158. Button132 = Group116.findObject(( "shadect"));
  159. Text131 = Group116.findObject(( "SongtickerShade"));
  160. Layer130 = Group116.findObject(( "volumebarShade"));
  161. Layer130.setXmlParam(( "w"), System.integerToString(( ( ( System.getVolume() / 255) * 40) + 5)));
  162. func3877();
  163. return Null;
  164. }
  165.  
  166. Group116.onResize(int x, int y, int w, int h)
  167. {
  168. func2396(w);
  169. return Null;
  170. }
  171.  
  172. Button127.onLeftClick()
  173. {
  174. ConfigAttribute24.setData(( "1"));
  175. return Null;
  176. }
  177.  
  178. func2396(Int 0)
  179. {
  180. Int Int162;
  181. Int Int159;
  182. Int159 = System.getPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
  183. if(Int159) {
  184. Button125.show();
  185. Button126.hide();
  186. } else {
  187. Button125.hide();
  188. Button126.show();
  189. }
  190. Group117.hide();
  191. Group118.hide();
  192. Group119.hide();
  193. Group120.hide();
  194. Group121.hide();
  195. Group122.hide();
  196. Group123.hide();
  197. Group124.hide();
  198. if(( Int156 < 400)) {
  199. Int162 = ( Int156 - 356);
  200. Group120.setXmlParam(( "w"), System.integerToString(Int162));
  201. Group120.show();
  202. Group122.show();
  203. if(( Int156 < 420)) {
  204. Group123.show();
  205. Group123.setXmlParam(( "w"), System.integerToString(Int162));
  206. if(( Int156 < 560)) {
  207. Group120.hide();
  208. Group121.setXmlParam(( "w"), System.integerToString(( Int162 - 45)));
  209. Group121.show();
  210. Group123.setXmlParam(( "w"), System.integerToString(( Int162 - 56)));
  211. if(Int159) {
  212. Group117.setXmlParam(( "x"), ( "\-100"));
  213. Group117.show();
  214. if(( Int156 < 583)) {
  215. Group121.setXmlParam(( "w"), System.integerToString(( Int162 - 68)));
  216. Group123.setXmlParam(( "w"), System.integerToString(( Int162 - 79)));
  217. Group117.setXmlParam(( "x"), ( "\-123"));
  218. Group118.setXmlParam(( "x"), ( "\-80"));
  219. Group118.show();
  220. if(( Int156 < 642)) {
  221. Group121.setXmlParam(( "w"), System.integerToString(( Int162 - 127)));
  222. Group123.setXmlParam(( "w"), System.integerToString(( Int162 - 138)));
  223. Group117.setXmlParam(( "x"), ( "\-182"));
  224. Group118.setXmlParam(( "x"), ( "\-139"));
  225. Group119.setXmlParam(( "x"), ( "\-116"));
  226. Group119.show();
  227. if(( Int156 < 660)) {
  228. Group124.setXmlParam(( "x"), System.integerToString(( - 257)));
  229. Group124.show();
  230. Group123.setXmlParam(( "w"), System.integerToString(( Int162 - 194)));
  231. }
  232. }
  233. }
  234. } else {
  235. Group121.setXmlParam(( "w"), System.integerToString(Int162));
  236. Group124.setXmlParam(( "x"), System.integerToString(( - 130)));
  237. Group124.show();
  238. Group123.setXmlParam(( "w"), System.integerToString(( Int162 - 66)));
  239. }
  240. }
  241. }
  242. }
  243. return Null;
  244. }
  245.  
  246. System.onKeyDown(String key)
  247. {
  248. if(( ( ( System.Strleft(key, 4) == ( "ctrl")) && ( System.strsearch(key, ( "\+w")) != ( - 1))) && ( Layout128.isActive() || Layout129.isActive()))) {
  249. if(Layout128.isVisible()) {
  250. Layout128.getContainer().switchToLayout(( "normal"));
  251. } else {
  252. Layout128.getContainer().switchToLayout(( "shade"));
  253. }
  254. complete;
  255. }
  256. return Null;
  257. }
  258.  
  259. Button125.onLeftClick()
  260. {
  261. System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
  262. func2396(Layout128.getGuiW());
  263. return Null;
  264. }
  265.  
  266. Button126.onLeftClick()
  267. {
  268. System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 1);
  269. func2396(Layout128.getGuiW());
  270. return Null;
  271. }
  272.  
  273. System.onVolumeChanged(int newvol)
  274. {
  275. Layer130.setXmlParam(( "w"), System.integerToString(( ( ( newvol / 255) * 40) + 5)));
  276. return Null;
  277. }
  278.  
  279. ConfigAttribute42.onDataChanged()
  280. {
  281. func3877();
  282. return Null;
  283. }
  284.  
  285. func3877()
  286. {
  287. if(( ConfigAttribute42.getData() == ( "1"))) {
  288. Text131.setXmlParam(( "ticker"), ( "1"));
  289. } else {
  290. Text131.setXmlParam(( "ticker"), ( "0"));
  291. }
  292. return Null;
  293. }
  294.  
  295. Button132.onRightButtonDown(int x, int y)
  296. {
  297. System.triggerAction(Button132, ( "ThemesSlotsMenu"), ( ""));
  298. complete;
  299. return Null;
  300. }
  301.  
  302.  
  303.